import { Component, OnInit } from '@angular/core';
import { SelfService } from './../../../data/self.service';

@Component({
  selector: 'app-make-contribute',
  templateUrl: './make-contribute.component.html',
  styleUrls: ['./make-contribute.component.less']
})
export class MakeContributeComponent implements OnInit {
  finishTaskList = [];
  constructor(private selfService: SelfService) { }

  ngOnInit() {
    this.getMyFinishTask();
  }
  getMyFinishTask() {
    this.selfService.getMyFinishTask(1, 99).subscribe((response) => {
      console.log(response);
      this.finishTaskList = response;
    });
  }
}
